<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/admin/rbac_show.css" />
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/access.js"></script>
</head>
<body>
<form action="{:U('Admin/Rbac/setAccess')}" method="post">
<div id="wrap">
      <a href="{:U('Admin/Rbac/roleMg')}" class="add-app">返回</a>
	<volist name="nodelist" id="vo">
	 
		<div class="app">
		   <p>
			<strong>{$vo.title}</strong>
			<input type="checkbox" name="access[]" value="{$vo.id}_1" level="1" <if condition="$vo['access']">checked='checked'</if> />
		</p>
		
		<volist name="vo['child']" id="action">
		<dl>
			<dt>
				<strong>{$action.title}</strong>
				<input type="checkbox" name="access[]" value="{$action.id}_2" level="2" <if condition="$action['access']">checked='checked'</if> />
			</dt>
			<volist name="action['child']" id="function">
			<dd>
					{$function.title}
					<input type="checkbox" name="access[]" value="{$function.id}_3" level="3" <if condition="$function['access']">checked='checked'</if> />
				 
			</dd>
			</volist>
		</dl>
		</volist>
	 </div>
	</volist>
</div>
<input type="hidden" name="rid" value="{$rid}">
<input type="submit" value="保存" class="submit">
</form>
</body>
</html>